/**   
 * Copyright © 2019 eSunny Info. Tech Ltd. All rights reserved.
 * 
 * @Description:TODO(功能)
 * @className Products.java
 * @Package: com.yj.erp.po 
 * @author: yj   
 * @date: 2019年1月14日 下午7:39:58 
 */
package com.erp.po;

import java.util.Date;

/**
 * @className Products.java
 * @author yj
 * @Description:TODO(商品 pojo)
 * @Date 2019年1月14日
 */
public class Products {

	private int productId;  //商品id
	private String productName; //商品名
	private double incomePrice; //进价
	private int quantity;   //数量
	private double salesPrice;  //买价
	private Date incomeTime;    //进货时间

	private Providers providers; //供应商
	private Categorys categorys; //商品类别

	public Products() {
		super();
		// TODO Auto-generated constructor stub
	}
	

	public Products(int productId) {
		super();
		this.productId = productId;
	}


	public Products(int productId, String productName) {
		super();
		this.productId = productId;
		this.productName = productName;
	}


	public Products(String productName, Providers providers, Categorys categorys) {
		super();
		this.productName = productName;
		this.providers = providers;
		this.categorys = categorys;
	}


	public Products(int productId, String productName, double incomePrice, int quantity, double salesPrice) {
		super();
		this.productId = productId;
		this.productName = productName;
		this.incomePrice = incomePrice;
		this.quantity = quantity;
		this.salesPrice = salesPrice;
	}


	public Products(String productName, double incomePrice, int quantity, double salesPrice, Providers providers,
			Categorys categorys) {
		super();
		this.productName = productName;
		this.incomePrice = incomePrice;
		this.quantity = quantity;
		this.salesPrice = salesPrice;
		this.providers = providers;
		this.categorys = categorys;
	}

	public Products(int productId, String productName, double incomePrice, int quantity, double salesPrice,
			Date incomeTime, Providers providers, Categorys categorys) {
		super();
		this.productId = productId;
		this.productName = productName;
		this.incomePrice = incomePrice;
		this.quantity = quantity;
		this.salesPrice = salesPrice;
		this.incomeTime = incomeTime;
		this.providers = providers;
		this.categorys = categorys;
	}

	public Products(int productId, String productName, double incomePrice, int quantity, double salesPrice,
			Date incomeTime) {
		super();
		this.productId = productId;
		this.productName = productName;
		this.incomePrice = incomePrice;
		this.quantity = quantity;
		this.salesPrice = salesPrice;
		this.incomeTime = incomeTime;
	}

	
	public int getProductId() {
		return productId;
	}


	public void setProductId(int productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public double getIncomePrice() {
		return incomePrice;
	}

	public void setIncomePrice(double incomePrice) {
		this.incomePrice = incomePrice;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public double getSalesPrice() {
		return salesPrice;
	}

	public void setSalesPrice(double salesPrice) {
		this.salesPrice = salesPrice;
	}

	public Date getIncomeTime() {
		return incomeTime;
	}

	public void setIncomeTime(Date incomeTime) {
		this.incomeTime = incomeTime;
	}

	public Providers getProviders() {
		return providers;
	}

	public void setProviders(Providers providers) {
		this.providers = providers;
	}

	public Categorys getCategorys() {
		return categorys;
	}

	public void setCategorys(Categorys categorys) {
		this.categorys = categorys;
	}

	@Override
	public String toString() {
		return "Products [productId=" + productId + ", productName=" + productName + ", incomePrice=" + incomePrice
				+ ", quantity=" + quantity + ", salesPrice=" + salesPrice + ", incomeTime=" + incomeTime
				+ ", providers=" + providers + ", categorys=" + categorys + "]";
	}

}
